function handles = plot1vsROI3(handles);
% plot1vsROI3
% 
% editing:
% gs july 2006
% ------------------------------------------------

% first parameter
paramStr = get(handles.parameter1name,'String');
if isempty(paramStr)
    disp('Parameter name missing.')
    return
else
    handles = loadParameter(paramStr, handles); 
end
handles.analysis.mapAverager.parameter1Name = handles.analysis.mapAverager.currentParameterName;
handles.analysis.mapAverager.parameter1Val = handles.analysis.mapAverager.currentParameterVal;

% second parameter -- avg val of ROI
try
    handles = mapAvgFromCellListB(handles, 0);
    handles.analysis.mapAverager.ROI.option = 'all';
    handles = mapROImeans(handles, 0); % flag - no figure
    handles = generateGroupData(handles);
catch
    error(lasterr)
end

figure('Color', 'w');
plot(handles.analysis.mapAverager.parameter1Val, handles.analysis.mapAverager.ROI.vecY, 'bo');
xlabel(handles.analysis.mapAverager.parameter1Name);
ylabel('ROI average value');
